package com.zbkj.crmeb.chant.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.utils.CrmebUtil;
import com.zbkj.crmeb.chant.dao.ChannelPartitionInfoDao;
import com.zbkj.crmeb.chant.model.ChannelPartitionInfo;
import com.zbkj.crmeb.chant.service.ChannelPartitionInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChannelPartitionInfoServiceImpl extends ServiceImpl<ChannelPartitionInfoDao, ChannelPartitionInfo> implements ChannelPartitionInfoService {

    @Override
    public List<ChannelPartitionInfo> getUserInPartitionInfo(Integer userId) {
        return this.list(Wrappers.<ChannelPartitionInfo>lambdaQuery()
                .apply(CrmebUtil.getFindInSetSql("uids", userId)));
    }
}
